package com.gdyx.app.web.svc.impl;


import com.gdyx.app.web.dao.MpsRoleFunDao;
import com.gdyx.app.web.model.MpsRoleFun;
import com.gdyx.app.web.svc.MpsRoleFunSvc;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Created by Y_Coffee on 2017/8/3.
 */
@Service
public class MpsRoleFunSvcImpl implements MpsRoleFunSvc {
    @Autowired
    MpsRoleFunDao dao;

    @Override
    public void save(MpsRoleFun o) {
        dao.save(o);
    }

    @Override
    public void saveOrUpdate(MpsRoleFun o) {
        dao.saveOrUpdate(o);
    }

    @Override
    public void delete(String id) {
        dao.delete(id);
    }

    @Override
    public void update(MpsRoleFun o) {
        dao.update(o);
    }

    @Override
    public MpsRoleFun findMpsRoleFunById(String id) {
        return dao.findMpsRoleFunById(id);
    }

    @Override
    public int count(Map<String, Object> map) {
        return dao.count(map);
    }

    @Override
    public List<MpsRoleFun> findMpsRoleFuns(Map<String, Object> map) {
        return dao.findMpsRoleFuns(map);
    }

    @Override
    public List<MpsRoleFun> findMpsRoleFunByRid(String roldId) {
        return dao.findMpsRoleFunByRid(roldId);
    }
}
